﻿<UserControl x:Class="WTwitter.View.UserInfoView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:view="clr-namespace:WTwitter.View"
	xmlns:vm="clr-namespace:WTwitter.ViewModel">
	<UserControl.Resources>
		<vm:FriendTypeToCategoryStringConverter x:Key="_friendTypeConverter"/>
	</UserControl.Resources>
	
	<DockPanel>
		<Image Source="{Binding Path=ProfileImageUrl}" 
			   DockPanel.Dock="Left" Width="64" Height="64"/>
		<StackPanel DockPanel.Dock="Top">
			<TextBlock>
				<TextBlock Text="{Binding Path=ScreenName}"/>
				(<TextBlock Text="{Binding Path=Name}"/>)
			</TextBlock>
			<StackPanel Orientation="Horizontal">
				<TextBlock>Id:</TextBlock>
				<TextBlock Text="{Binding Path=Id}"/>
			</StackPanel>
			<StackPanel Orientation="Horizontal">
				<TextBlock>フォロー関係:</TextBlock>
				<TextBlock Text="{Binding Path=FriendType, Converter={StaticResource _friendTypeConverter}}"/>
			</StackPanel>
			<GroupBox Header="自己紹介" Margin="3">
				<TextBlock Text="{Binding Path=Description}" TextWrapping="Wrap" MaxWidth="300" />
			</GroupBox>
		</StackPanel>
	</DockPanel>
</UserControl>
